package cn.youyu.fm.dao;

import cn.youyu.fm.domain.Role;
import cn.youyu.fm.mapper.RoleMapper;
import org.springframework.stereotype.Repository;

/**
 * @author: mayuanbao
 * @date: 2018-12-24 21:32
 * @description:
 */
@Repository(value = "roleDao")
public class RoleDaoJdbc extends BaseDao implements IRoleDao {
    @Override
    public Role getRole(Integer roleId) {
        return getSqlSession().getMapper(RoleMapper.class).getRole(roleId);
    }
}
